package mysqloperate;

import java.sql.Connection;
import java.sql.Statement;

public class detestudentmysql {
    public static void detestudent(String id)throws Exception{
        String sql="delete from student where studyid="+id;
        connection con=new connection();
        Connection connection=con.getconnection();
        Statement statement=connection.createStatement();
        int num=statement.executeUpdate(sql);
        statement.close();
        connection.close();
    }
}
